﻿@using Akso.Entities
@using Akso.Web.Areas.Mpa.Models.Common.Modals
@model Akso.Web.Areas.BasicDataModule.Models.CodeGroups.CreateOrEditCodeGroupModalViewModel
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("Pages_BasicDataModule_CodeGroups_Edit") + ": " + Model.CodeGroup.CodeGroupName) : L("Pages_BasicDataModule_CodeGroups_Create")))
<div class="modal-body">

    <form name="ObjectForm" role="form" novalidate class="form-validation">
        @if (Model.IsEditMode)
        {
            <input type="hidden" name="Id" value="@Model.CodeGroup.Id" />
        }

        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="CodeGroupName" value="@Model.CodeGroup.CodeGroupName" class="form-control edited" required maxlength="@CodeGroupEntity.MaxNameLength" />
            <label>@L("Page_BasicDataModule_CodeGroups_GridColumn_Name")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="CodeGroupKey" value="@Model.CodeGroup.CodeGroupKey" class="form-control edited" required maxlength="@CodeGroupEntity.MaxCodeGroupKeyLength" />
            <label>@L("Page_BasicDataModule_CodeGroups_GridColumn_Value")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="SortIndex" value="@Model.CodeGroup.SortIndex" class="form-control edited" maxlength=4 />
            <label>@L("Page_BasicDataModule_CodeGroups_GridColumn_SortIndex")</label>
        </div>

    </form>

</div>

@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")